﻿using shenghua.Authorization.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Users.Dto
{
    public class UpdateAdminPersonalProfileDto
    {
        public string Head { get; set; }
        public string Post { get; set; }
        public string Name { get; set; }
        public string Sex { get; set; }
        public string PhoneNumber { get; set; }
        public string EmailAddress { get; set; }
        public string Remark { get; set; }

        public void MapTo(User user)
        {
            user.Head = Head;
            user.Post = Post;
            user.Name = Name;
            user.Sex = Sex;
            user.PhoneNumber = PhoneNumber;
            user.EmailAddress = EmailAddress;
            user.Remark = Remark;
        }
    }
}
